import request from '@/common/request.js'

// 获取轮播图列表
export async function getCarouselList() {
	console.log('Calling carousel list API - START');
	
	try {
		const response = await request({
			url: '/api/carousel/list',
			method: 'get',
			completeCallback: () => {
				console.log('Carousel API request completed');
			}
		});
		console.log('Carousel API request successful:', response);
		return response;
	} catch (error) {
		console.error('Carousel API request failed:', error);
		throw error; // 重新抛出错误，便于调用者捕获
	} finally {
		console.log('Calling carousel list API - END');
	}
} 